#include <iostream>

#include "DCTool.h"
#include "DCDevice.h"


int
main(int    argc, 
     char **argv)
{
  std::cout << "==Digital Camera Viewer==" << std::endl;


  bool ret = false;
  int  uid = 0;
  
  ret = DCTool::init();
  if( !ret )
    return -1;

  DCTool::printCameraList();

  std::cout << "INPUT USE CAMERA UID -> ";
  std::cin >> uid;


  DCDevice *device;
  
  device = DCTool::createDevice(uid);
  if( !device )
    return -1;

  device->printDeviceInfo();

  delete device;

  DCTool::finish();

  std::cout << "- Finish" << std::endl;

  return 0;
}

